<?php

namespace backend\models\system;

use Yii;
use backend\models\system\SysConfig;

/**
 * ContactForm is the model behind the contact form.
 */
class EmailForm extends SysConfig
{
    public $email_static;//邮件发送
    public $smtp_service;//SMTP服务器地址
    public $smtp_port;//SMTP端口号
	public $smtp_username;//SMTP用户名
	public $smtp_password;//SMTP密码
	public $sender_address;//发信人地址
	public $sender_name;//发信人名称

    /**
     * @inheritdoc 验证规则
     */
    public function rules()
    {
        return [
            [['email_static','smtp_service','smtp_port','smtp_username','smtp_password','sender_address','sender_name'], 'string',"max"=>150],
        ];
    }

    public function attributeLabels()
    {
        return [
            'email_static' => '邮件发送',
            'smtp_service' => 'SMTP服务器地址',
            'smtp_port' => 'SMTP端口号',
            'smtp_username'=>'SMTP用户名',
            'smtp_password'=> "SMTP密码",
            'sender_address'=>'发信人地址',
	        'sender_name' => '发信人名称',
        ];
    }
}